var db = require('../../core/database.js');

/*
 * records data so that it can be retrieved
 * later if client requested it.
 */
function record(data) {
    console.log('enocean -- ' + JSON.stringify(data));
    db.storeData(data);
}

module.exports.execute = record;
